package com.ebei.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 组织架构与角色构成虚拟岗位 与用户关联
 */
@Data
@TableName("sys_org_role")
public class SysOrgRole extends Model<SysOrgRole> {

    @TableId(value = "position_id", type = IdType.AUTO)
    private Integer positionId;
    @TableField("position_name")
    private String positionName;
    @TableField("org_id")
    private Integer orgId;
    @TableField("role_id")
    private Integer roleId;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("del_flag")
    private String delFlag;

    @Override
    protected Serializable pkVal() {
        return this.positionId;
    }
}
